$(document).ready(function () {
	$.ajax({
        url:  urlcore + "/api/account/allUserAccount",
        type: "get",
        contentType: "application/json;charset=utf-8",
        dataType: "json",
        success:function(data){
            if (data.success == true) {
				$('#shopAll').html(data.data[0].shopAll);
				$('#shopDeposit').html(data.data[1].shopDeposit);
				$('#riderAll').html(data.data[2].riderAll);
				$('#riderDeposit').html(data.data[3].riderDeposit);
				$('#zhiFuBao').html(data.data[4].zhiFuBao);
				$('#WeiXin').html(data.data[5].WeiXin);
				$('#drawMoney').html(data.data[6].drawMoney);
				$('#punishMoney').html(data.data[7].punishMoney);
				$('#undealMoney').html(data.data[8].undealMoney);
				$('#serveMoney').html(data.data[9].serveMoney);
            } else if (data.code == 'OVERTIME') {
                var thisUrl = window.location.href;
                if (thisUrl.indexOf('login.html') <= -1) {
                    top.window.location.href = "login.html";
                }
            } else {
                alert(data.msg);
            }

        },
        error: function() {
            alert("error");
        }

    });
			
});
